package com.blovesoft.tokenup.ui.mine;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.v4.content.ContextCompat;
import android.support.v4.widget.SwipeRefreshLayout;
import android.view.View;
import android.widget.TextView;

import com.blankj.utilcode.util.SpanUtils;
import com.blovesoft.tokenup.R;
import com.llkj.common.base.BaseActivity;
import com.llkj.common.di.component.AppComponent;

import butterknife.BindView;
import butterknife.OnClick;

/**
 * author: zhu.px
 * e-mail: 1271901673@qq.com
 * time  : 2018/5/28
 * desc  : 我的钱包
 */
public class MyWalletActivity extends BaseActivity implements SwipeRefreshLayout.OnRefreshListener {

    @BindView(R.id.tv_balance)
    TextView tvBalance;
    @BindView(R.id.tv_address)
    TextView tvAddress;
    @BindView(R.id.tv_bind)
    TextView tvBind;
    @BindView(R.id.tv_recharge_buy)
    TextView tvRechargeBuy;
    @BindView(R.id.swipe_layout)
    SwipeRefreshLayout swipeLayout;

    @Override
    public int getLayoutResId() {
        return R.layout.activity_mywallet;
    }

    @Override
    public boolean useEventBus() {
        return false;
    }

    @Override
    public void initView() {
        tvBalance.setText(new SpanUtils()
                .append("0.00").setFontSize(18, true)
                .append(getString(R.string.tct)).setFontSize(12, true)
                .create());
        swipeLayout.setColorSchemeColors(ContextCompat.getColor(mContext, com.llkj.common.R.color.colorPrimary));
    }

    @Override
    public void initData() {

    }

    @Override
    public void getBundleExtras(Bundle extras) {

    }

    @Override
    public void initListener() {
        swipeLayout.setOnRefreshListener(this);
    }

    @Override
    public void setupActivityComponent(@NonNull AppComponent appComponent) {

    }

    @Override
    public void onRefresh() {

    }

    @OnClick({R.id.tv_address, R.id.tv_recharge_buy})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.tv_address:
                break;
            case R.id.tv_recharge_buy:
                break;
            default:
                break;
        }
    }
}
